<template>
  <div class="nav-breadcrumb">
    <el-breadcrumb separator="/">
    <template v-for="item in breadcurmbs" :key="item.name">
       <el-breadcrumb-item :to="{ path: item.path }">{{item.name}}</el-breadcrumb-item>
    </template>

    </el-breadcrumb>
  </div>
</template>

<script lang="ts">
import { defineComponent ,PropType} from "vue";
import { IBreadcurmb } from '../types'

export default defineComponent({
  props:{
    breadcurmbs:{
      type:Array as PropType<IBreadcurmb[]>,
      default:()=>[]
    }
  },
  setup() {
    return {}
  }
})
</script>

<style lang="less" scoped>

</style>
